package com.jiayang.business.infrareddetailpage;

import com.jiayang.business.equipmentinfopage.EquipmentInfoService;
import com.jiayang.business.equipmentinfopage.domain.dto.AlarmHandlingFormDTO;
import com.jiayang.business.equipmentinfopage.domain.dto.ThresholdDTO;
import com.jiayang.business.infraredpage.domain.dto.PointTemperatureDTO;
import com.jiayang.common.anno.OperateLog;
import com.jiayang.common.domain.ResponseDTO;
import com.jiayang.constant.SwaggerTagConst;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

/**
 * @ Author     ：OuyangChenglong
 * @ Date       ：Created in 9:56 2021/9/8
 * @ Description：红外详情
 * @ Modified By：
 * @Version: 1.0$
 */
@RestController
@Api(tags = {SwaggerTagConst.Admin.CLIENT_INFRARED_DETAIL})
@OperateLog
public class InfraredDetailController {

    @Autowired
    private InfraredDetailService infraredDetailService;

    // 红外XY测点详情页 --------------------------------------------------------------------------------------------------------
    @PostMapping("/equipmentInfo/infrared/xy/initgetPointTemperature")
    @ApiOperation(value = "根据前端参数获取点位温度和状态可以是多个也可以是一个", notes = "红外图像上点位点击事件 @author OuyangChenglong")
    public ResponseDTO initGetPointTemperature(@RequestBody List<PointTemperatureDTO> pointTemperatureDTO) {
        return infraredDetailService.initGetPointTemperature(pointTemperatureDTO);
    }

}
